home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / terms / tipx / Makefile < prev    next >
Encoding:
Makefile  |  1991-11-02  |  3.5 KB  |  114 lines

  1. #
  2. # Copyright (c) 1988 The Regents of the University of California.
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms are permitted
  6. # provided that the above copyright notice and this paragraph are
  7. # duplicated in all such forms and that any documentation,
  8. # advertising materials, and other materials related to such
  9. # distribution and use acknowledge that the software was developed
  10. # by the University of California, Berkeley.  The name of the
  11. # University may not be used to endorse or promote products derived
  12. # from this software without specific prior written permission.
  13. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  14. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  15. # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. # This makefile is for tip2, an enhanced tip based on the Berkeley
  18. # 4.3 tip available from uunet's ftp communications directory.
  19. #
  20. #    @(#)Makefile    5.6 (Berkeley) 9/28/88
  21. #
  22. # make file for intermachine communications package
  23. #
  24. # Files are:
  25. #    /etc/remote        remote host description file
  26. #    /etc/phones        phone number file, owned by ${OWNER} and
  27. #                  mode 6??
  28. #    ${ADM}/aculog        ACU accounting file, owned by ${OWNER} and
  29. #                  mode 6?? {if ACULOG defined}
  30. # Presently supports:
  31. #    BIZCOMP
  32. #    DEC DF02-AC, DF03-AC
  33. #    DEC DN-11/Able Quadracall
  34. #    HAYES and Hayes emulators
  35. #    USR COURIER (2400 baud)
  36. #    VENTEL 212+
  37. #    VADIC 831 RS232 adaptor
  38. #    VADIC 3451
  39. #    Hayes Smartmodem 2400
  40. #    Telebit Trailblazer
  41. # (drivers are located in libacu.a)
  42. #
  43. # Configuration defines:
  44. #    DF02, DF03, DN11    ACU's supported
  45. #      BIZ1031, BIZ1022, VENTEL, V831, V3451, HAYES, COURIER
  46. #      SM2400, TELEBIT
  47. #    ACULOG            turn on tip logging of ACU use
  48. #    PRISTINE        no phone #'s put in ACU log file
  49. #    CONNECT            worthless command
  50. #    DEFBR            default baud rate to make connection at
  51. #    DEFFS            default frame size for FTP buffering of
  52. #                writes on local side
  53. #    BUFSIZ            buffer sizing from stdio, must be fed
  54. #                explicitly to remcap.c if not 1024
  55. #    STREAMS            system has streams tty interface (SunOS 4.0)
  56. ADM=    usr/adm
  57. CONFIG=    -DSM2400 -DTELEBIT
  58. CFLAGS=    -O -DDEFBR=19200 -DDEFFS=BUFSIZ -DCONNECT -DTIPX -DSTREAMS -DSUNOS41
  59. LIBC=    /lib/libc.a
  60. SRCS=    acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c log.c login.c partab.c \
  61.     remcap.c remote.c tip.c tipout.c uucplock.c value.c vars.c \
  62.     page.c slip.c
  63. OBJS=    acu.o acutab.o cmds.o cmdtab.o cu.o hunt.o log.o login.o partab.o \
  64.     remcap.o remote.o tip.o tipout.o uucplock.o value.o vars.o \
  65.     page.o slip.o
  66. MAN=    tip.1
  67.  
  68. all: libacu/libacu.a tip
  69.  
  70. tip: ${OBJS} ${LIBC}
  71.     ${CC} -o $@ ${OBJS} libacu/libacu.a
  72.  
  73. # acutab is configuration dependent, and so depends on the makefile
  74. acutab.o: Makefile
  75. acutab.o: acutab.c
  76.     ${CC} -c ${CFLAGS} ${CONFIG} acutab.c
  77.  
  78. # remote.o depends on the makefile because of DEFBR and DEFFS
  79. # log.o depends on the makefile because of ACULOG
  80. log.o remote.o: Makefile
  81.  
  82. libacu/libacu.a: FRC
  83.     cd libacu; make ${MFLAGS}
  84.  
  85. clean:
  86.     rm -f ${OBJS} core tip
  87.     cd libacu; make ${MFLAGS} clean
  88.  
  89. cleandir: clean
  90.     rm -f ${MAN} tags .depend
  91.     cd libacu; make ${MFLAGS} cleandir
  92.  
  93. depend:
  94.     mkdep ${CFLAGS} ${SRCS}
  95.     cd libacu; make ${MFLAGS} depend
  96.  
  97. install: ${MAN}
  98.     cd libacu; make ${MFLAGS} install
  99.     install -s -o root -g daemon -m 6711 tip ${DESTDIR}/usr/bin/tip
  100.     rm -f ${DESTDIR}/usr/bin/cu
  101.     ln ${DESTDIR}/usr/bin/tip ${DESTDIR}/usr/bin/cu
  102.     install -c -o bin -g bin -m 444 tip.1 ${DESTDIR}/usr/man/man1
  103.     rm -f ${DESTDIR}/usr/man/man1/cu.1
  104.     ln ${DESTDIR}/usr/man/tip1/tip.1 ${DESTDIR}/usr/man/cat1/cu.1
  105.  
  106. lint: ${SRCS}
  107.     lint ${CFLAGS} ${SRCS}
  108.  
  109. tags: ${SRCS}
  110.     ctags ${SRCS}
  111.     cd libacu; make ${MFLAGS} tags
  112.  
  113. FRC:
  114.